﻿using Fortune.Attributes.API;
using Fortune.Util;

namespace Fortune.API
{
    /// <summary>
    /// 获取游戏当前全部物品数据（不从数据库查询）
    /// </summary>
    [Get("/proto/items/_realTime")]
    public class ItemProtoApi : AbstractApi<string>
    {
        // private ItemProtoRepository itemProtoRepository = FortuneContext.getBean<ItemProtoRepository>();
        
        protected override object handle(string param)
        {
            return ProtoUtil.toDataObject(LDB.items.dataArray);
        }
    }
}